﻿//------------------------------------------------------------------------------
// ╭─────────────────────────────╮
// │ ╭─╮     ╭─╮              TM │   ╠═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╣
// │ │ │     │ │                 │                                           ☺  
// │ │ ╰───╮ │ │ ╭─────╮ ╭─────╮ │     Name:Wedn.Net 视图引擎配置节点解析 ♮ ♪ ♩
// │ │ ╭─╮ │ │ │ │ ╭─╮ │ │ ╭─╮ │ │                                    ♫ ♭      
// │ │ ╰─╯ │ │ │ │ ╰─╯ │ │ ╰─╯ │ │     Author:iceStone               ♬ ♪       
// │ └─────╯ └─╯ ╰─────╯ ╰───╮ │ │     Chinese:汪磊                              
// │                     ┌───╯ │ │                                              
// │                     ╰─────╯ │   ╠═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╣
// ╰─────────────────────────────╯                                              
//------------------------------------------------------------------------------
using System.Configuration;

namespace Wedn.Net.TEngine.Configuration
{
    /// <summary>
    /// 视图引擎配置节点解析
    /// </summary>
    public class ViewEngineConfigurationSection : ConfigurationSection
    {
        /// <summary>
        /// 拓展名
        /// </summary>
        [ConfigurationProperty("extensions", IsRequired = true)]
        public ViewEngineItemColletion Extensions
        {
            get { return this["extensions"] as ViewEngineItemColletion; }
            set { this["extensions"] = value; }
        }

        /// <summary>
        /// 区域的视图位置格式
        /// </summary>
        [ConfigurationProperty("areaViewLocationFormats", IsRequired = true)]
        public ViewEngineItemColletion AreaViewLocationFormats
        {
            get { return this["areaViewLocationFormats"] as ViewEngineItemColletion; }
            set { this["areaViewLocationFormats"] = value; }
        }

        /// <summary>
        /// 区域的主位置格式
        /// </summary>
        [ConfigurationProperty("areaMasterLocationFormats", IsRequired = true)]
        public ViewEngineItemColletion AreaMasterLocationFormats
        {
            get { return this["areaMasterLocationFormats"] as ViewEngineItemColletion; }
            set { this["areaMasterLocationFormats"] = value; }
        }

        /// <summary>
        /// 区域的分部视图位置格式
        /// </summary>
        [ConfigurationProperty("areaPartialViewLocationFormats", IsRequired = true)]
        public ViewEngineItemColletion AreaPartialViewLocationFormats
        {
            get { return this["areaPartialViewLocationFormats"] as ViewEngineItemColletion; }
            set { this["areaPartialViewLocationFormats"] = value; }
        }

        /// <summary>
        /// 视图位置格式
        /// </summary>
        [ConfigurationProperty("viewLocationFormats", IsRequired = true)]
        public ViewEngineItemColletion ViewLocationFormats
        {
            get { return this["viewLocationFormats"] as ViewEngineItemColletion; }
            set { this["viewLocationFormats"] = value; }
        }

        /// <summary>
        /// 视图的主位置格式
        /// </summary>
        [ConfigurationProperty("masterLocationFormats", IsRequired = true)]
        public ViewEngineItemColletion MasterLocationFormats
        {
            get { return this["masterLocationFormats"] as ViewEngineItemColletion; }
            set { this["masterLocationFormats"] = value; }
        }

        /// <summary>
        /// 分部视图位置格式
        /// </summary>
        [ConfigurationProperty("partialViewLocationFormats", IsRequired = true)]
        public ViewEngineItemColletion PartialViewLocationFormats
        {
            get { return this["partialViewLocationFormats"] as ViewEngineItemColletion; }
            set { this["partialViewLocationFormats"] = value; }
        }
    }
}
